package ycl.important.common.models.req.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 注册
 *
 * @author: YCL
 * @date: 2021-06-15 12:46:20
 */
@Data
@ApiModel("注册")
public class RegisterReq {

	@ApiModelProperty(value = "用户名", required = true)
	@NotBlank(message = "用户名不能为空")
	private String username;

	@ApiModelProperty(value = "密码", required = true)
	@NotBlank(message = "密码不能为空")
	private String password;

	@ApiModelProperty(value = "手机号", required = true)
	@NotBlank(message = "手机号不能为空")
	private String mobile;

	@ApiModelProperty(value = "验证码", required = true)
	@NotBlank(message = "验证码不能为空")
	private String authCode;

	@ApiModelProperty(value = "邀请码")
	private String invitation;

}
